﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 数据绑定.Base;

namespace 数据绑定.ViewModels
{
    public class FormatViewModel : BaseViewModel
    {
		private float price = 1.23456f;

		public float Price
		{
			get { return price; }
			set 
			{
				price = value;
				Set(ref price, value);
			}
		}

		private DateTime now = DateTime.Now;

		public DateTime Now
		{
			get { return now; }
			set 
			{ 
				now = value;
				Set(ref now, value);
			}
		}


		private string name = "Zero";

		public string Name
		{
			get { return name; }
			set 
			{ 
				name = value;
				Set<string>(ref name, value);
			}
		}

		private int num = 66;

		public int Num
		{
			get { return num; }
			set 
			{ 
				num = value;
				Set(ref num, value);
			}
		}

		private double rate = 0.1123;

		public double Rate
		{
			get { return rate; }
			set 
			{ 
				rate = value; 
				Set(ref rate, value);
			}
		}

	}
}
